package com.cy.feign;

import com.cy.bfzcommons.pojo.Product;
import com.cy.bfzcommons.web.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "item-service")
public interface ProductClient {
    //根据商品名查询商品
    @GetMapping("/product/selectById/{id}")
    JsonResult selectById(@PathVariable Integer id);


}
